import Cookies from 'js-cookie';

const TokenKey = 'token';

export default {
  getToken(): string {
    return Cookies.get(TokenKey) || '';
  },

  setToken(token: string) {
    Cookies.set(TokenKey, token, { expires: 30 });
  },

  removeToken() {
    Cookies.remove(TokenKey);
  },
};
